<div class="post" id="<%= entry.id %>">
  <p class="date"><%= entry.created_at.to_s(:long) %></p>
  <h2><%= link_to h(entry.title), {:action => "show", :id => entry.id} %></h2>
  <p class="tag">
    Tags: [
    <% for tag in entry.tag_list %>
      <%= link_to tag, {:action => "tag", :id => tag} %>
    <% end %>
    ]
  </p>
  <div class="entry">
    <p><%= entry.content %></p>
  </div>
  
  <p class="postedby">Posted by <%= @blog.user.name %> under <%= link_to "#{entry.category.name}(#{entry.category.entries_count})", {:action => "category", :id => entry.category.id} %> <%= link_to "#{entry.comments.count} Comments", {:action => :show, :id => entry.id, :anchor => "comments"} %></p> 
</div>